<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Address extends CI_Controller {

	 function __construct()
    {
        parent::__construct();
    }
	public function output()
	{
		$this->load->library('PHPExcel');
		$this->load->library('PHPExcel/IOFactory');

		$objPHPExcel = new PHPExcel();
		$objPHPExcel->getProperties()->setTitle("title")
		                 ->setDescription("description");
		                        
		// Assign cell values
		$objPHPExcel->setActiveSheetIndex(0);
		$objPHPExcel->getActiveSheet()->setCellValue('A1', 'cell value here');

		// Save it as an excel 2003 file
		$objWriter = IOFactory::createWriter($objPHPExcel, 'Excel5');
		$objWriter->save("nameoffile.xls");

		
	}
	

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */